package com.sfac.springCloudAccount.service;

import com.github.pagehelper.PageInfo;
import org.example.account.entity.User;
import org.example.account.vo.UserVo;
import org.example.common.vo.Result;
import org.example.common.vo.Search;

import java.util.List;

/**
 * @author jzq
 * @date 2022/8/27 10:27
 */
public interface UserService {

    User getUserByUserNameAndPassword(String userName, String password);

    Result<User> login(User user);

    void logout();

    Result<User> insertUser(User user);

    Result<User> updateUser(User user);

    User getUserById(int id);

    Result<Object> deleteUserById(int id);

    PageInfo<User> getUsersBySearchBean(Search search);

    User getUserByUserName(String userName);

    List<User> getUsersByKeyWord(String keyword);

    UserVo getUserVoByUserIdAndCityId(int userId, int cityId);

}

